<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('echo_temp'))
{
	function echo_temp($posts, $mode) {
			if ($mode == 1) {
	?>
			
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-25 h-60">
					<h3><?=urldecode($posts[0]->feed_title)?> <span><?=urldecode($posts[0]->feed_date)?></span></h3>
					<p><?=urldecode($posts[0]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[0]->feed_link)?>'><?=urldecode($posts[0]->feed_link)?></a></p><span class="source"><?=urldecode($posts[0]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-50 h-60 box-b-l box-b-r">
					<h3><?=urldecode($posts[1]->feed_title)?> <span><?=urldecode($posts[1]->feed_date)?></span></h3>
					<p><?=urldecode($posts[1]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[1]->feed_link)?>'><?=urldecode($posts[1]->feed_link)?></a></p><span class="source"><?=urldecode($posts[1]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-25 h-60">
					<h3><?=urldecode($posts[2]->feed_title)?> <span><?=urldecode($posts[2]->feed_date)?></span></h3>
					<p><?=urldecode($posts[2]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[2]->feed_link)?>'><?=urldecode($posts[2]->feed_link)?></a></p><span class="source"><?=urldecode($posts[2]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-50 h-40 box-b-r title-top">
					<h3><?=urldecode($posts[3]->feed_title)?> <span><?=urldecode($posts[3]->feed_date)?></span></h3>
					<p><?=urldecode($posts[3]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[3]->feed_link)?>'><?=urldecode($posts[3]->feed_link)?></a></p><span class="source"><?=urldecode($posts[3]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-50 h-40 title-top">
					<h3><?=urldecode($posts[4]->feed_title)?> <span><?=urldecode($posts[4]->feed_date)?></span></h3>
					<p><?=urldecode($posts[4]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[4]->feed_link)?>'><?=urldecode($posts[4]->feed_link)?></a></p><span class="source"><?=urldecode($posts[4]->source_name)?></span>
				</div>
	<?php
			} elseif ($mode == 2) {
	?>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-30 h-50">
					<h3><?=urldecode($posts[0]->feed_title)?> <span><?=urldecode($posts[0]->feed_date)?></span></h3>
					<p><?=urldecode($posts[0]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[0]->feed_link)?>'><?=urldecode($posts[0]->feed_link)?></a></p><span class="source"><?=urldecode($posts[0]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-40 h-50 box-b-r box-b-l  title-top">
					<h3><?=urldecode($posts[1]->feed_title)?> <span><?=urldecode($posts[1]->feed_date)?></span></h3>
					<p><?=urldecode($posts[1]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[1]->feed_link)?>'><?=urldecode($posts[1]->feed_link)?></a></p><span class="source"><?=urldecode($posts[1]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-30 h-50">
					<h3><?=urldecode($posts[2]->feed_title)?> <span><?=urldecode($posts[2]->feed_date)?></span></h3>
					<p><?=urldecode($posts[2]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[2]->feed_link)?>'><?=urldecode($posts[2]->feed_link)?></a></p><span class="source"><?=urldecode($posts[2]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-40 h-50 box-b-r title-top">
					<h3><?=urldecode($posts[3]->feed_title)?> <span><?=urldecode($posts[3]->feed_date)?></span></h3>
					<p><?=urldecode($posts[3]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[3]->feed_link)?>'><?=urldecode($posts[3]->feed_link)?></a></p><span class="source"><?=urldecode($posts[3]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-60 h-50 title-top">
					<h3><?=urldecode($posts[4]->feed_title)?> <span><?=urldecode($posts[4]->feed_date)?></span></h3>
					<p><?=urldecode($posts[4]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[4]->feed_link)?>'><?=urldecode($posts[4]->feed_link)?></a></p><span class="source"><?=urldecode($posts[4]->source_name)?></span>
				</div>
	<?php
			} elseif ($mode == 3) {
	?>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-40 h-60 box-b-r title-top">
					<h3><?=urldecode($posts[0]->feed_title)?> <span><?=urldecode($posts[0]->feed_date)?></span></h3>
					<p><?=urldecode($posts[0]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[0]->feed_link)?>'><?=urldecode($posts[0]->feed_link)?></a></p><span class="source"><?=urldecode($posts[0]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-60 h-60 title-top">
					<h3><?=urldecode($posts[2]->feed_title)?> <span><?=urldecode($posts[1]->feed_date)?></span></h3>
					<p><?=urldecode($posts[2]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[1]->feed_link)?>'><?=urldecode($posts[1]->feed_link)?></a></p><span class="source"><?=urldecode($posts[1]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-40 h-40 box-b-r title-top">
					<h3><?=urldecode($posts[3]->feed_title)?> <span><?=urldecode($posts[2]->feed_date)?></span></h3>
					<p><?=urldecode($posts[3]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[2]->feed_link)?>'><?=urldecode($posts[2]->feed_link)?></a></p><span class="source"><?=urldecode($posts[2]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-30 h-40 box-b-r title-top">
					<h3><?=urldecode($posts[3]->feed_title)?> <span><?=urldecode($posts[3]->feed_date)?></span></h3>
					<p><?=urldecode($posts[3]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[3]->feed_link)?>'><?=urldecode($posts[3]->feed_link)?></a></p><span class="source"><?=urldecode($posts[3]->source_name)?></span>
				</div>
				<div catid="<?=$posts[0]->feed_cat?>" class="box w-30 h-40 title-top">
					<h3><?=urldecode($posts[4]->feed_title)?> <span><?=urldecode($posts[4]->feed_date)?></span></h3>
					<p><?=urldecode($posts[4]->feed_excerpt)?></p><p><a class="display_when_open" target="_blank" href='<?=urldecode($posts[4]->feed_link)?>'><?=urldecode($posts[4]->feed_link)?></a></p><span class="source"><?=urldecode($posts[4]->source_name)?></span>
				</div>
	<?php
			}
	
	}
}

/* End of file echo_helper.php */
/* Location: ./application/helpers/echo_helper.php */